package com.dayuanit.dy15.lesson25.demo3;

public class Test {

    public static void main(String[] args) {
        try {
            System.out.println("try begin");
//            int num = 9 / 0;
            System.out.println("try end");
            return;
        } catch (Exception e) {
            System.out.println("catch begin");
            e.printStackTrace();
            System.out.println("catch end");
//            return;
        } finally { //不管有木有异常 都要执行的代码 最终要执行的代码
            System.out.println("main end");
        }

        System.out.println("JVM end");
    }
}
